package com.xiyu.service.errorCode.mailbox;

import com.xiyu.service.framework.exception.ErrorCode;

/**
* mail 错误码枚举类
*
* mail 邮件管理，使用 1003001000段
*/
public interface MailErrorCode {
    Integer ERROR_CODE_START_CODE = 1003001000;

    ErrorCode MAILBOX_FOLDER_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 1, "邮箱文件夹不存在");
    ErrorCode MAILBOX_FOLDER_ONLY_DELETE_EDIT = new ErrorCode(ERROR_CODE_START_CODE + 2, "只能删除手动创建的文件夹");
    ErrorCode MAILBOX_MAIL_LABEL_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 3, "邮件标签不存在");
    ErrorCode MAILBOX_MAIL_LABEL_NAME_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 4, "已存在相同名称的邮件标签");
    ErrorCode MAILBOX_MAIL_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 5, "邮件不存在");
    ErrorCode MAILBOX_LABEL_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 6, "邮件标签不存在");
    ErrorCode MAILBOX_FOLDER_CLASS_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 7, "{}文件夹不存在");
    ErrorCode MAILBOX_ACCOUNT_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 8, "邮件账号不存在");
    ErrorCode MAILBOX_ROOT_FOLDER_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 9, "邮箱根文件夹不存在");
    ErrorCode MAILBOX_INTERNAL_FOLDER_TOO_MUCH = new ErrorCode(ERROR_CODE_START_CODE + 10, "邮箱{}内置文件夹过多");
    ErrorCode MAILBOX_FOLDER_ONLY_RENAME_EDIT = new ErrorCode(ERROR_CODE_START_CODE + 11, "只有手动创建的文件夹可以重新命名");
    ErrorCode MAILBOX_FOLDER_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 12, "已存在相同名称的文件夹");
    ErrorCode MAILBOX_MAIL_ADDRESS_ILLEGALITY = new ErrorCode(ERROR_CODE_START_CODE + 13, "{}邮件地址：{}不合法");
    ErrorCode MAILBOX_MAIL_SAVE_FILE_UNKNOWN_ERROR = new ErrorCode(ERROR_CODE_START_CODE + 14, "导出邮件出现未知错误");
    ErrorCode MAILBOX_MAIL_APPROVE_NOT_LEADER = new ErrorCode(ERROR_CODE_START_CODE + 15, "主动请审出现错误：部门没有负责人");
}